package com.yunji.aggregate.model.vo.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yunji.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.user.vo
 * @Title: WalletVO
 * <p>
 * History:
 * Date                     Version     Author          Summary
 * ============================================================
 * 2024-10-26 09:50:57      V1.0        HuaAo       新建类
 */
@Data
public class BelongStatisticsVO {

    @ApiModelProperty(value = "所属ID")
    @TableId(type = IdType.AUTO)
    private Long belongId;

    @Excel(name = "账户名称", readConverterExp = "00=平台,11=代理,13=网点", width = 15)
    @ApiModelProperty(value = "所属类型(00:平台;11:代理;13:网点)")
    private String belongType;

    @Excel(name = "账户名称", width = 15)
    @ApiModelProperty(value = "所属名称")
    private String belongName;

    @ApiModelProperty("手机号")
    @Excel(name = "手机号", width = 15)
    @TableField(exist = false)
    private String phoneNumber;

    @ApiModelProperty(value = "父级所属ID")
    private Long parentId;

    @Excel(name = "代理模式", readConverterExp = "0=合作代理,1=自营代理", width = 15)
    @ApiModelProperty(value = "代理模式(0:合作代理;1:自营代理)")
    private Integer agentMode;

    @ApiModelProperty(value = "代理ID")
    private Long agentId;

    @ApiModelProperty(value = "网点ID")
    private Long siteId;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @Excel(name = "分成比例", width = 15)
    @ApiModelProperty(value = "分成比例/每笔金额")
    private BigDecimal scaleRatio;

    @Excel(name = "账户余额", width = 15)
    @ApiModelProperty(value = "账户余额")
    private BigDecimal remainAmount;

    @Excel(name = "冻结金额", width = 15)
    @ApiModelProperty(value = "冻结金额")
    private BigDecimal frozenAmount;

    @Excel(name = "提现收益", width = 15)
    @ApiModelProperty(value = "提现收益")
    private BigDecimal cashAmount;

    @Excel(name = "累计收益", width = 15)
    @ApiModelProperty(value = "累计收益")
    private BigDecimal earnAmount;

    @Excel(name = "退款金额", width = 15)
    @ApiModelProperty(value = "退款金额")
    private BigDecimal refundAmount;

    @ApiModelProperty(value = "自定义价格(0:关闭;1:开启 默认:0关闭)")
    private Integer customPrice;

    @ApiModelProperty(value = "分成类型(0:不分成;1:按交易金额;2:按交易笔数; 默认:0关闭)")
    private Integer scaleType;

    @ApiModelProperty(value = "库存开关(0-关闭1-开启)")
    private Integer stockStatus;

    @ApiModelProperty(value = "分成比例/每笔金额")
    private BigDecimal deductRatio;

    @ApiModelProperty("所属单位Ids")
    @TableField(exist = false)
    private Long[] belongIds;

    @ApiModelProperty("货柜数")
    @Excel(name = "货柜数", width = 5)
    private Long containerNums;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("更新时间")
    private Date updateTime;

}